<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="../src/assets/index.css" />
    <script src="../node_modules/vue/dist/vue.global.js"></script>
    <script src="../node_modules/axios/dist/axios.js"></script>
    <script src="../node_modules/lodash/lodash.min.js"></script>
  </head>
  <body>
    <div id="app">
      <div class="container">
        <!-- 上面搜索部分 -->
        <div class="search">
          <div class="title">
            <p>综合</p>
            <p>定位</p>
          </div>
          <div class="types">
            <div class="type-list" v-for="(arr,key) in typeList" :key="key">
              <div
                v-for="item in arr"
                class="radio"
                @click="changeChecked(key,item.value)"
                :class="{checked:checked===item.value}"
              >
                {{item.name}}
              </div>
            </div>
          </div>
          <div class="keyword">
            <div class="input">
              <input
                type="text"
                @input="lightKeyword"
                :value="keyword"
                placeholder="请输入你要搜索的英雄名"
              />
            </div>
          </div>
        </div>
        <!-- 下面列表展示部分 -->
        <ul class="list" v-if="filterHeroes.length > 0">
          <li v-for="hero in filterHeroes" key="hero.id_name">
            <a :href="heroDetail(hero.ename)" target="_blank">
              <img :src="heroImg(hero.ename)" />
              <span v-html="hero.cname"></span>
            </a>
          </li>
        </ul>
      </div>
    </div>

    <!-- 引入js文件 -->
    <script src="../src/js/index.js"></script>
  </body>
</html>
